﻿using System;
using VH6I_B4.Datawarehouse;

namespace VH6I_B4.BronBestandReaders
{
    abstract class ABronBestandReader
    {
        protected DatawarehouseApi _dwh;

        public ABronBestandReader(DatawarehouseApi dwh)
        {
            _dwh = dwh;
        }

        public abstract void read();

        protected double strToDouble(string input)
        {
            double result = 0;
            input = input.Trim();
            if (!string.IsNullOrWhiteSpace(input))
            {
                result = Double.Parse(input.Replace('.', ','));
            }
            return result;
        }
    }
}
